package com.wiki.gds.member.facade.member.hystrix;

import com.wiki.gds.member.facade.member.api.MemberApi;
import com.wiki.gds.member.facade.member.model.Member;
import feign.hystrix.FallbackFactory;
import org.springframework.stereotype.Component;


@Component
public class MemberApiFallbackFactory implements FallbackFactory<MemberApi> {

    public MemberApi create(Throwable throwable) {
        return new MemberApi() {
            @Override
            public Member getMemberBySelf(Member member) {
                return null;
            }

            @Override
            public String Test() {
                return null;
            }
        };
    }
}

